package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * module_display_classify（模块展示分类表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("module_display_classify")
@ApiModel(value = "ModuleDisplayClassify对象", description = "module_display_classify（模块展示分类表）")
public class ModuleDisplayClassify extends Model<ModuleDisplayClassify> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分类流水号")
    @TableId("classify_id")
    private String classifyId;

    @ApiModelProperty(value = "分类名称")
    @TableField("classify_name")
    private String classifyName;

    @ApiModelProperty(value = "分类备注")
    @TableField("classify_remark")
    private String classifyRemark;

    @ApiModelProperty(value = "分类排序")
    @TableField("classify_order")
    private Double classifyOrder;

    @ApiModelProperty(value = "是否删除：0：未删除，1：已删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @TableField("create_user_id")
    private String createUserId;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_user_id")
    private String updateUserId;

    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.classifyId;
    }

}
